package cn.lyf.util;

import java.text.SimpleDateFormat;
import java.util.Date;

public class DateFormat {

    private DateFormat(){}


    //格式化日期
     public static Date dateFormat(){
         Date date = new Date();
         String strDateFormat = "yyyy-MM-dd HH:mm:ss";
         SimpleDateFormat sdf = new SimpleDateFormat(strDateFormat);
         sdf.format(date);
         return date;
     }
}
